﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptBaoCaoKyGoiDaiLy : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("RadCT")]
        private RadioButton _RadCT;
        [AccessedThroughProperty("RadTH")]
        private RadioButton _RadTH;
        [AccessedThroughProperty("updNam")]
        private NumericUpDown _updNam;
        [AccessedThroughProperty("UpdNam2")]
        private NumericUpDown _UpdNam2;
        [AccessedThroughProperty("updThang")]
        private NumericUpDown _updThang;
        [AccessedThroughProperty("updThang2")]
        private NumericUpDown _updThang2;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsXuatKho objXK;

        public Frm_RptBaoCaoKyGoiDaiLy()
        {
            base.Load += new EventHandler(this.Frm_RptBaoCaoKyGoiDaiLy_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objXK = new clsXuatKho();
            this.InitializeComponent();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.RadTH.Checked)
            {
                this.PrintData();
            }
            else
            {
                this.PrintData_ChiTiet();
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_RptBaoCaoKyGoiDaiLy_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, true, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                this.updNam.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
                this.updThang.Value = new decimal(DateAndTime.Month(DateAndTime.Today));
                this.UpdNam2.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
                this.updThang2.Value = new decimal(DateAndTime.Month(DateAndTime.Today));
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptBaoCaoKyGoiDaiLy));
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1 = new GroupBox();
            this.Label1 = new Label();
            this.Label5 = new Label();
            this.UpdNam2 = new NumericUpDown();
            this.updThang2 = new NumericUpDown();
            this.updNam = new NumericUpDown();
            this.updThang = new NumericUpDown();
            this.Label4 = new Label();
            this.CboDonVi = new ComboBox();
            this.Label3 = new Label();
            this.Label13 = new Label();
            this.RadCT = new RadioButton();
            this.RadTH = new RadioButton();
            this.Label2 = new Label();
            this.GroupBox1.SuspendLayout();
            this.UpdNam2.BeginInit();
            this.updThang2.BeginInit();
            this.updNam.BeginInit();
            this.updThang.BeginInit();
            this.SuspendLayout();
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            Point point = new Point(0x12f, 0x99);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            Size size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x18;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(220, 0x99);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 0x17;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.RadCT);
            this.GroupBox1.Controls.Add(this.RadTH);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.UpdNam2);
            this.GroupBox1.Controls.Add(this.updThang2);
            this.GroupBox1.Controls.Add(this.updNam);
            this.GroupBox1.Controls.Add(this.updThang);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.CboDonVi);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.Label13);
            point = new Point(12, 12);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(370, 0x87);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0x16;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(0x92, 0x61);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x1d, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x58;
            this.Label1.Text = "Năm";
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            point = new Point(0x92, 0x47);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x1d, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x58;
            this.Label5.Text = "Năm";
            point = new Point(0xb5, 0x5f);
            this.UpdNam2.Location = point;
            decimal num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.UpdNam2.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.UpdNam2.Minimum = num;
            this.UpdNam2.Name = "UpdNam2";
            size = new Size(0x3a, 20);
            this.UpdNam2.Size = size;
            this.UpdNam2.TabIndex = 0x57;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.UpdNam2.Value = num;
            point = new Point(90, 0x5e);
            this.updThang2.Location = point;
            num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang2.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang2.Minimum = num;
            this.updThang2.Name = "updThang2";
            size = new Size(0x2d, 20);
            this.updThang2.Size = size;
            this.updThang2.TabIndex = 0x56;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang2.Value = num;
            point = new Point(0xb5, 0x45);
            this.updNam.Location = point;
            num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.updNam.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Minimum = num;
            this.updNam.Name = "updNam";
            size = new Size(0x3a, 20);
            this.updNam.Size = size;
            this.updNam.TabIndex = 0x57;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Value = num;
            point = new Point(90, 0x44);
            this.updThang.Location = point;
            num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Minimum = num;
            this.updThang.Name = "updThang";
            size = new Size(0x2d, 20);
            this.updThang.Size = size;
            this.updThang.TabIndex = 0x56;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Value = num;
            this.Label4.AutoSize = true;
            point = new Point(0x15, 0x16);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x26, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x36;
            this.Label4.Text = "Đơn vị";
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(90, 0x13);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0x10f, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0x35;
            this.Label3.AutoSize = true;
            point = new Point(0x15, 0x61);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x39, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x2f;
            this.Label3.Text = "Đến th\x00e1ng";
            this.Label13.AutoSize = true;
            point = new Point(0x13, 0x47);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(50, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x2e;
            this.Label13.Text = "Từ th\x00e1ng";
            this.RadCT.AutoSize = true;
            point = new Point(0xba, 0x2d);
            this.RadCT.Location = point;
            this.RadCT.Name = "RadCT";
            size = new Size(0x39, 0x11);
            this.RadCT.Size = size;
            this.RadCT.TabIndex = 0x5b;
            this.RadCT.Text = "Chi tiết";
            this.RadCT.UseVisualStyleBackColor = true;
            this.RadTH.AutoSize = true;
            this.RadTH.Checked = true;
            point = new Point(90, 0x2d);
            this.RadTH.Location = point;
            this.RadTH.Name = "RadTH";
            size = new Size(0x47, 0x11);
            this.RadTH.Size = size;
            this.RadTH.TabIndex = 0x5c;
            this.RadTH.TabStop = true;
            this.RadTH.Text = "Tổng hợp";
            this.RadTH.UseVisualStyleBackColor = true;
            this.Label2.AutoSize = true;
            point = new Point(0x13, 0x2f);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x34, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 90;
            this.Label2.Text = "T\x00f9y chọn";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x189, 0xb3);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_RptBaoCaoKyGoiDaiLy";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "BAO CAO THEO DOI KY GOI DAI LY";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.UpdNam2.EndInit();
            this.updThang2.EndInit();
            this.updNam.EndInit();
            this.updThang.EndInit();
            this.ResumeLayout(false);
        }

        public void PrintData()
        {
            string strTuNgay = "";
            string strDenNgay = "";
            this.Cursor = Cursors.WaitCursor;
            strTuNgay = LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            strDenNgay = LVYModule.sRight("0000" + this.UpdNam2.Value.ToString(), 4) + LVYModule.sRight("00" + Conversions.ToString(this.updThang2.Value), 2);
            DataTable table = this.objXK.GetDataPrintTheoDoiKyGuiDaiLy(strTuNgay, strDenNgay, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboDonVi.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
            if (table.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                object instance = new Rpt_TheoDoiKyGoiDaiLy();
                try
                {
                    object[] arguments = new object[] { table };
                    bool[] copyBack = new bool[] { true };
                    NewLateBinding.LateCall(instance, null, "SetDataSource", arguments, null, null, copyBack, true);
                    if (copyBack[0])
                    {
                        table = (DataTable) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0]), typeof(DataTable));
                    }
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, "") }, null, null, null, true);
                    }
                    else
                    {
                        NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, "") }, null, null, null, true);
                    }
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 5, modGeneral.Tranlated("THEO D\x00d5I H\x00c0NG H\x00d3A K\x00dd GỞI ĐẠI L\x00dd", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 6, modGeneral.Tranlated("Từ th\x00e1ng", "") + " : " + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2) + "/" + LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4) }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 7, modGeneral.Tranlated("Đến th\x00e1ng", "") + " : " + LVYModule.sRight("00" + Conversions.ToString(this.updThang2.Value), 2) + "/" + LVYModule.sRight("0000" + this.UpdNam2.Value.ToString(), 4) }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 8, modGeneral.Tranlated("M\x00e3", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 9, modGeneral.Tranlated("T\x00ean", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 10, modGeneral.Tranlated("ĐVT", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 11, modGeneral.Tranlated("Tồn đầu kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 12, modGeneral.Tranlated("S.lượng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 13, modGeneral.Tranlated("Gi\x00e1 trị", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 14, modGeneral.Tranlated("Đ\x00e3 giao đại l\x00fd", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 15, modGeneral.Tranlated("Đ\x00e3 xuất b\x00e1n", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x10, modGeneral.Tranlated("Tồn cuối kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x11, modGeneral.Tranlated("Tổng cộng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x12, modGeneral.Tranlated("Ng\x00e0y .... th\x00e1ng .... năm ............", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x13, modGeneral.Tranlated("Lập biểu", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 20, modGeneral.Tranlated("Kế to\x00e1n trưởng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x15, modGeneral.Tranlated("Gi\x00e1m đốc", "") }, null, null, null, true);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = RuntimeHelpers.GetObjectValue(instance);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void PrintData_ChiTiet()
        {
            string strTuNgay = "";
            string strDenNgay = "";
            this.Cursor = Cursors.WaitCursor;
            strTuNgay = LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            strDenNgay = LVYModule.sRight("0000" + this.UpdNam2.Value.ToString(), 4) + LVYModule.sRight("00" + Conversions.ToString(this.updThang2.Value), 2);
            DataTable table = this.objXK.GetDataPrintTheoDoiKyGuiDaiLy_ChiTiet(strTuNgay, strDenNgay, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboDonVi.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
            if (table.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                object instance = new Rpt_TheoDoiKyGoiDaiLy_ChiTiet();
                try
                {
                    object[] arguments = new object[] { table };
                    bool[] copyBack = new bool[] { true };
                    NewLateBinding.LateCall(instance, null, "SetDataSource", arguments, null, null, copyBack, true);
                    if (copyBack[0])
                    {
                        table = (DataTable) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0]), typeof(DataTable));
                    }
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, "") }, null, null, null, true);
                    }
                    else
                    {
                        NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, "") }, null, null, null, true);
                    }
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 5, modGeneral.Tranlated("THEO D\x00d5I H\x00c0NG H\x00d3A K\x00dd GỞI ĐẠI L\x00dd", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 6, modGeneral.Tranlated("Từ th\x00e1ng", "") + " : " + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2) + "/" + LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4) }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 7, modGeneral.Tranlated("Đến th\x00e1ng", "") + " : " + LVYModule.sRight("00" + Conversions.ToString(this.updThang2.Value), 2) + "/" + LVYModule.sRight("0000" + this.UpdNam2.Value.ToString(), 4) }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 8, modGeneral.Tranlated("M\x00e3", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 9, modGeneral.Tranlated("T\x00ean", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 10, modGeneral.Tranlated("ĐVT", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 11, modGeneral.Tranlated("Tồn đầu kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 12, modGeneral.Tranlated("S.lượng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 13, modGeneral.Tranlated("Gi\x00e1 trị", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 14, modGeneral.Tranlated("Đ\x00e3 giao đại l\x00fd", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 15, modGeneral.Tranlated("Đ\x00e3 xuất b\x00e1n", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x10, modGeneral.Tranlated("Tồn cuối kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x11, modGeneral.Tranlated("Tổng cộng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x12, modGeneral.Tranlated("Ng\x00e0y .... th\x00e1ng .... năm ............", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x13, modGeneral.Tranlated("Lập biểu", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 20, modGeneral.Tranlated("Kế to\x00e1n trưởng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x15, modGeneral.Tranlated("Gi\x00e1m đốc", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x16, modGeneral.Tranlated("Số chứng từ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x17, modGeneral.Tranlated("Diễn giải", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x18, modGeneral.Tranlated("Số lượng", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x19, modGeneral.Tranlated("Gi\x00e1 vốn", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0x1a, modGeneral.Tranlated("Tiền vốn", "") }, null, null, null, true);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = RuntimeHelpers.GetObjectValue(instance);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdCancel = value;
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual RadioButton RadCT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RadCT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RadCT = value;
            }
        }

        internal virtual RadioButton RadTH
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RadTH;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RadTH = value;
            }
        }

        internal virtual NumericUpDown updNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updNam = value;
            }
        }

        internal virtual NumericUpDown UpdNam2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._UpdNam2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._UpdNam2 = value;
            }
        }

        internal virtual NumericUpDown updThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updThang = value;
            }
        }

        internal virtual NumericUpDown updThang2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updThang2 = value;
            }
        }
    }
}

